(0) Obligation:

Runtime Complexity TRS:
The TRS R consists of the following rules:

t(N) → cs(r(q(N)), nt(ns(N)))
q(0) → 0
q(s(X)) → s(p(q(X), d(X)))
d(0) → 0
d(s(X)) → s(s(d(X)))
p(0, X) → X
p(X, 0) → X
p(s(X), s(Y)) → s(s(p(X, Y)))
f(0, X) → nil
f(s(X), cs(Y, Z)) → cs(Y, nf(X, a(Z)))
t(X) → nt(X)
s(X) → ns(X)
f(X1, X2) → nf(X1, X2)
a(nt(X)) → t(a(X))
a(ns(X)) → s(a(X))
a(nf(X1, X2)) → f(a(X1), a(X2))
a(X) → X

Rewrite Strategy: INNERMOST

(1) CpxTrsToCdtProof (BOTH BOUNDS(ID, ID) transformation)

Converted CpxTRS to CDT

(2) Obligation:

Complexity Dependency Tuples Problem
Rules:

t(z0) → cs(r(q(z0)), nt(ns(z0)))
t(z0) → nt(z0)
q(0) → 0
q(s(z0)) → s(p(q(z0), d(z0)))
d(0) → 0
d(s(z0)) → s(s(d(z0)))
p(0, z0) → z0
p(z0, 0) → z0
p(s(z0), s(z1)) → s(s(p(z0, z1)))
f(0, z0) → nil
f(s(z0), cs(z1, z2)) → cs(z1, nf(z0, a(z2)))
f(z0, z1) → nf(z0, z1)
s(z0) → ns(z0)
a(nt(z0)) → t(a(z0))
a(ns(z0)) → s(a(z0))
a(nf(z0, z1)) → f(a(z0), a(z1))
a(z0) → z0
Tuples:

T(z0) → c(Q(z0))
Q(s(z0)) → c3(S(p(q(z0), d(z0))), P(q(z0), d(z0)), Q(z0), D(z0))
D(s(z0)) → c5(S(s(d(z0))), S(d(z0)), D(z0))
P(s(z0), s(z1)) → c8(S(s(p(z0, z1))), S(p(z0, z1)), P(z0, z1))
F(s(z0), cs(z1, z2)) → c10(A(z2))
A(nt(z0)) → c13(T(a(z0)), A(z0))
A(ns(z0)) → c14(S(a(z0)), A(z0))
A(nf(z0, z1)) → c15(F(a(z0), a(z1)), A(z0), A(z1))
S tuples:

T(z0) → c(Q(z0))
Q(s(z0)) → c3(S(p(q(z0), d(z0))), P(q(z0), d(z0)), Q(z0), D(z0))
D(s(z0)) → c5(S(s(d(z0))), S(d(z0)), D(z0))
P(s(z0), s(z1)) → c8(S(s(p(z0, z1))), S(p(z0, z1)), P(z0, z1))
F(s(z0), cs(z1, z2)) → c10(A(z2))
A(nt(z0)) → c13(T(a(z0)), A(z0))
A(ns(z0)) → c14(S(a(z0)), A(z0))
A(nf(z0, z1)) → c15(F(a(z0), a(z1)), A(z0), A(z1))
K tuples:none
Defined Rule Symbols:

t, q, d, p, f, s, a

Defined Pair Symbols:

T, Q, D, P, F, A

Compound Symbols:

c, c3, c5, c8, c10, c13, c14, c15

(3) CdtUnreachableProof (EQUIVALENT transformation)

The following tuples could be removed as they are not reachable from basic start terms:

Q(s(z0)) → c3(S(p(q(z0), d(z0))), P(q(z0), d(z0)), Q(z0), D(z0))
D(s(z0)) → c5(S(s(d(z0))), S(d(z0)), D(z0))
P(s(z0), s(z1)) → c8(S(s(p(z0, z1))), S(p(z0, z1)), P(z0, z1))
F(s(z0), cs(z1, z2)) → c10(A(z2))

(4) Obligation:

Complexity Dependency Tuples Problem
Rules:

t(z0) → cs(r(q(z0)), nt(ns(z0)))
t(z0) → nt(z0)
q(0) → 0
q(s(z0)) → s(p(q(z0), d(z0)))
d(0) → 0
d(s(z0)) → s(s(d(z0)))
p(0, z0) → z0
p(z0, 0) → z0
p(s(z0), s(z1)) → s(s(p(z0, z1)))
f(0, z0) → nil
f(s(z0), cs(z1, z2)) → cs(z1, nf(z0, a(z2)))
f(z0, z1) → nf(z0, z1)
s(z0) → ns(z0)
a(nt(z0)) → t(a(z0))
a(ns(z0)) → s(a(z0))
a(nf(z0, z1)) → f(a(z0), a(z1))
a(z0) → z0
Tuples:

T(z0) → c(Q(z0))
A(nt(z0)) → c13(T(a(z0)), A(z0))
A(ns(z0)) → c14(S(a(z0)), A(z0))
A(nf(z0, z1)) → c15(F(a(z0), a(z1)), A(z0), A(z1))
S tuples:

T(z0) → c(Q(z0))
A(nt(z0)) → c13(T(a(z0)), A(z0))
A(ns(z0)) → c14(S(a(z0)), A(z0))
A(nf(z0, z1)) → c15(F(a(z0), a(z1)), A(z0), A(z1))
K tuples:none
Defined Rule Symbols:

t, q, d, p, f, s, a

Defined Pair Symbols:

T, A

Compound Symbols:

c, c13, c14, c15

(5) CdtLeafRemovalProof (BOTH BOUNDS(ID, ID) transformation)

Removed 1 trailing nodes:

T(z0) → c(Q(z0))

(6) Obligation:

Complexity Dependency Tuples Problem
Rules:

t(z0) → cs(r(q(z0)), nt(ns(z0)))
t(z0) → nt(z0)
q(0) → 0
q(s(z0)) → s(p(q(z0), d(z0)))
d(0) → 0
d(s(z0)) → s(s(d(z0)))
p(0, z0) → z0
p(z0, 0) → z0
p(s(z0), s(z1)) → s(s(p(z0, z1)))
f(0, z0) → nil
f(s(z0), cs(z1, z2)) → cs(z1, nf(z0, a(z2)))
f(z0, z1) → nf(z0, z1)
s(z0) → ns(z0)
a(nt(z0)) → t(a(z0))
a(ns(z0)) → s(a(z0))
a(nf(z0, z1)) → f(a(z0), a(z1))
a(z0) → z0
Tuples:

A(nt(z0)) → c13(T(a(z0)), A(z0))
A(ns(z0)) → c14(S(a(z0)), A(z0))
A(nf(z0, z1)) → c15(F(a(z0), a(z1)), A(z0), A(z1))
S tuples:

A(nt(z0)) → c13(T(a(z0)), A(z0))
A(ns(z0)) → c14(S(a(z0)), A(z0))
A(nf(z0, z1)) → c15(F(a(z0), a(z1)), A(z0), A(z1))
K tuples:none
Defined Rule Symbols:

t, q, d, p, f, s, a

Defined Pair Symbols:

A

Compound Symbols:

c13, c14, c15

(7) CdtRhsSimplificationProcessorProof (BOTH BOUNDS(ID, ID) transformation)

Removed 3 trailing tuple parts

(8) Obligation:

Complexity Dependency Tuples Problem
Rules:

t(z0) → cs(r(q(z0)), nt(ns(z0)))
t(z0) → nt(z0)
q(0) → 0
q(s(z0)) → s(p(q(z0), d(z0)))
d(0) → 0
d(s(z0)) → s(s(d(z0)))
p(0, z0) → z0
p(z0, 0) → z0
p(s(z0), s(z1)) → s(s(p(z0, z1)))
f(0, z0) → nil
f(s(z0), cs(z1, z2)) → cs(z1, nf(z0, a(z2)))
f(z0, z1) → nf(z0, z1)
s(z0) → ns(z0)
a(nt(z0)) → t(a(z0))
a(ns(z0)) → s(a(z0))
a(nf(z0, z1)) → f(a(z0), a(z1))
a(z0) → z0
Tuples:

A(nt(z0)) → c13(A(z0))
A(ns(z0)) → c14(A(z0))
A(nf(z0, z1)) → c15(A(z0), A(z1))
S tuples:

A(nt(z0)) → c13(A(z0))
A(ns(z0)) → c14(A(z0))
A(nf(z0, z1)) → c15(A(z0), A(z1))
K tuples:none
Defined Rule Symbols:

t, q, d, p, f, s, a

Defined Pair Symbols:

A

Compound Symbols:

c13, c14, c15

(9) CdtPolyRedPairProof (UPPER BOUND (ADD(O(n^1))) transformation)

Found a reduction pair which oriented the following tuples strictly. Hence they can be removed from S.

A(nt(z0)) → c13(A(z0))
A(ns(z0)) → c14(A(z0))
A(nf(z0, z1)) → c15(A(z0), A(z1))
We considered the (Usable) Rules:none
And the Tuples:

A(nt(z0)) → c13(A(z0))
A(ns(z0)) → c14(A(z0))
A(nf(z0, z1)) → c15(A(z0), A(z1))
The order we found is given by the following interpretation:
Polynomial interpretation :

POL(A(x1)) = [5] + [4]x1   
POL(c13(x1)) = x1   
POL(c14(x1)) = x1   
POL(c15(x1, x2)) = x1 + x2   
POL(nf(x1, x2)) = [4] + x1 + x2   
POL(ns(x1)) = [2] + x1   
POL(nt(x1)) = [5] + x1   

(10) Obligation:

Complexity Dependency Tuples Problem
Rules:

t(z0) → cs(r(q(z0)), nt(ns(z0)))
t(z0) → nt(z0)
q(0) → 0
q(s(z0)) → s(p(q(z0), d(z0)))
d(0) → 0
d(s(z0)) → s(s(d(z0)))
p(0, z0) → z0
p(z0, 0) → z0
p(s(z0), s(z1)) → s(s(p(z0, z1)))
f(0, z0) → nil
f(s(z0), cs(z1, z2)) → cs(z1, nf(z0, a(z2)))
f(z0, z1) → nf(z0, z1)
s(z0) → ns(z0)
a(nt(z0)) → t(a(z0))
a(ns(z0)) → s(a(z0))
a(nf(z0, z1)) → f(a(z0), a(z1))
a(z0) → z0
Tuples:

A(nt(z0)) → c13(A(z0))
A(ns(z0)) → c14(A(z0))
A(nf(z0, z1)) → c15(A(z0), A(z1))
S tuples:none
K tuples:

A(nt(z0)) → c13(A(z0))
A(ns(z0)) → c14(A(z0))
A(nf(z0, z1)) → c15(A(z0), A(z1))
Defined Rule Symbols:

t, q, d, p, f, s, a

Defined Pair Symbols:

A

Compound Symbols:

c13, c14, c15

(11) SIsEmptyProof (EQUIVALENT transformation)

The set S is empty

(12) BOUNDS(O(1), O(1))